import { legacy_createStore, combineReducers, applyMiddleware } from "redux";

import thunk from "redux-thunk";
import logger from "redux-logger";

import station from "./reducer/station";
import trainNumber from "./reducer/trainNumber";
import line from "./reducer/line";
import ticket from "./reducer/ticket";
let allstore = combineReducers({ station, trainNumber, line, ticket });

let store = legacy_createStore(allstore, applyMiddleware(thunk, logger));

export default store;
